package mrHunter.puzzles.array;

import java.util.Arrays;

public class Puzzle3 {
    public String mySort(String input){
        //int[] A
        //int[] B
        String[] AArray=input.split(" ");
        int[] A=new int[AArray.length];
        for(int i=0;i<AArray.length;i++){
            A[i]=Integer.parseInt(AArray[i]);
        }

        Arrays.sort(A);

        StringBuilder res=new StringBuilder();
        for(int j=0;j<A.length;j++){
            res.append(A[j]);
            if(j!=A.length-1)
                res.append(" ");
        }
        return res.toString();
    }
}
